package com.sky.mapper.admin;


import com.sky.pojo.DishFlavor;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 菜品口味
 */
@Mapper
public interface DishFlavorMapper {

    //保存口味
    void addDf(List<DishFlavor> flavors);

    // 删除关联的口味
    void deleteDfByDishId(Long id);

    //删除口味
    void deleteDf(List<Long> ids);

    //查
    List<DishFlavor> getFlavorsByDishId(Long id);
}
